 /*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import DAO.*;
import DTO.*;
import java.awt.Desktop;
import java.awt.ItemSelectable;
import java.awt.event.ItemListener;


import java.util.List;
import java.util.ArrayList;


import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;

import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;



import java.util.*;

import java.util.logging.Level;
import java.util.logging.Logger;
//import javax.swing.JDialog;
import javax.swing.JFrame;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.*;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import net.sf.jasperreports.swing.JRViewer;
import org.apache.commons.collections.ArrayStack;




//import sun.io.Converters;

/**
 *
 * @author Luis Olave 10
 */
public class AprobacionGarantiaHipotecaria extends javax.swing.JFrame {

    usuarioDTO user;
    garantiasDAO reg = new garantiasDAO();
    garantiasDAO garaHipo = new garantiasDAO();
    garantiaHipotecariaDTO aproGaraHipo = new garantiaHipotecariaDTO();

    /**
     * Creates new form AprobacionGarantiaHipotecaria
     */
    public AprobacionGarantiaHipotecaria(usuarioDTO user) {
        this.user = user;
        initComponents();
        pnlIngreseRutGarante.setVisible(false);
        pnlIngreseRutGarante1.setVisible(false);
        this.txtComentarioApro.enable(false);
        this.btnAceptar.setVisible(false);
        cargarEstado();
        this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
               
    }

    
    
    public void cargarEstado()
    {
        
       ArrayList<estadoGarantiaDTO> cargar = garaHipo.CargarEstadoGarantia();
        int size = cargar.size();
            for (int i = 0; i < size; i++) {
                this.cmbEstadoAprobHipo.addItem(cargar.get(i));
            }
       
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jLabel2 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jPanel5 = new javax.swing.JPanel();
        pnlDatosPersoGara = new javax.swing.JPanel();
        jPanel10 = new javax.swing.JPanel();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        txtNombreAprobHipo = new javax.swing.JTextField();
        txtApellMatAprobHipo = new javax.swing.JTextField();
        txtApellPatAprobHipo = new javax.swing.JTextField();
        txtRutAprobHipo = new javax.swing.JTextField();
        btnMenuAprobHipo = new javax.swing.JButton();
        pnlIngreseRutGarante = new javax.swing.JPanel();
        jLabel30 = new javax.swing.JLabel();
        txtRolAprobHipo = new javax.swing.JTextField();
        btnBuscarRolAprobHipo = new javax.swing.JButton();
        pnlIngreseRutGarante1 = new javax.swing.JPanel();
        jLabel31 = new javax.swing.JLabel();
        txtFolioAprobHipo = new javax.swing.JTextField();
        btnBuscarFolioAprobHipo = new javax.swing.JButton();
        chkFolioAprobHipo = new javax.swing.JCheckBox();
        chkRolAprobHipo = new javax.swing.JCheckBox();
        jPanel3 = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        pnlCreacionGaraHipo = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jPanel11 = new javax.swing.JPanel();
        jPanel15 = new javax.swing.JPanel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        txtGradoPrefere = new javax.swing.JTextField();
        txtFechUltReval = new javax.swing.JTextField();
        txtFechUltCredito = new javax.swing.JTextField();
        txtFechExtincion = new javax.swing.JTextField();
        txtFojas = new javax.swing.JTextField();
        txtAñosRepertorio = new javax.swing.JTextField();
        txtMtsConstruidos = new javax.swing.JTextField();
        txtTipoGarantia = new javax.swing.JTextField();
        jLabel22 = new javax.swing.JLabel();
        txtMontoInicialHipotecaria = new javax.swing.JTextField();
        jPanel16 = new javax.swing.JPanel();
        jLabel54 = new javax.swing.JLabel();
        jLabel55 = new javax.swing.JLabel();
        jLabel56 = new javax.swing.JLabel();
        jLabel57 = new javax.swing.JLabel();
        jLabel58 = new javax.swing.JLabel();
        jLabel59 = new javax.swing.JLabel();
        jLabel60 = new javax.swing.JLabel();
        jLabel61 = new javax.swing.JLabel();
        jLabel62 = new javax.swing.JLabel();
        jLabel64 = new javax.swing.JLabel();
        jLabel65 = new javax.swing.JLabel();
        jLabel66 = new javax.swing.JLabel();
        jLabel67 = new javax.swing.JLabel();
        jLabel68 = new javax.swing.JLabel();
        jLabel69 = new javax.swing.JLabel();
        jLabel70 = new javax.swing.JLabel();
        txtDireccionCredito = new javax.swing.JTextField();
        txtLocalidadReg = new javax.swing.JTextField();
        txtEstadoContri = new javax.swing.JTextField();
        txtFechUltTasacion = new javax.swing.JTextField();
        txtNumero = new javax.swing.JTextField();
        txtRegistroCbr = new javax.swing.JTextField();
        txtRolSii = new javax.swing.JTextField();
        txtUniSuperficie = new javax.swing.JTextField();
        txtTipoConstruccion = new javax.swing.JTextField();
        txtComuna = new javax.swing.JTextField();
        txtMoneda = new javax.swing.JTextField();
        txtFechUltDebito = new javax.swing.JTextField();
        txtFechCreacion = new javax.swing.JTextField();
        txtSuperficie = new javax.swing.JTextField();
        txtCobertura = new javax.swing.JTextField();
        txtSucursal = new javax.swing.JTextField();
        jPanel14 = new javax.swing.JPanel();
        lblArchivo = new javax.swing.JLabel();
        btnExaminar = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jPanel6 = new javax.swing.JPanel();
        pnlDescripGarantia = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        txtDescripcionHipo = new javax.swing.JTextArea();
        lblDescripcion = new javax.swing.JLabel();
        pnlEstado = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        txtComentarioApro = new javax.swing.JTextArea();
        jLabel5 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        lblEstadoActual = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        btnAceptar = new javax.swing.JButton();
        btnIrMenuPrincipal = new javax.swing.JButton();
        jPanel9 = new javax.swing.JPanel();
        txtEstadoActualHipotecaria = new javax.swing.JTextField();
        pnlEstadoGarantia1 = new javax.swing.JPanel();
        lblEstrado1 = new javax.swing.JLabel();
        cmbEstadoAprobHipo = new javax.swing.JComboBox();
        pnlDescripGarantia2 = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        txtOtroComentarioAprobacion = new javax.swing.JTextArea();
        lblDescripcion2 = new javax.swing.JLabel();
        jPanel17 = new javax.swing.JPanel();
        jPanel18 = new javax.swing.JPanel();
        jPanel19 = new javax.swing.JPanel();
        txtBuscarNumeroIdentificador = new javax.swing.JTextField();
        btnBuscarNumeroIdentificador = new javax.swing.JButton();
        btnImprimirTabla = new javax.swing.JButton();
        jPanel7 = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        tbSalidaImpresion = new javax.swing.JTable();
        btnMenuPrincipalHipotecaria = new javax.swing.JButton();
        btnExportar = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("APROBACIÓN GARANTÍA HIPOTECARIA");
        setResizable(false);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE/logo.JPG"))); // NOI18N

        jLabel1.setFont(new java.awt.Font("Century Gothic", 1, 18)); // NOI18N
        jLabel1.setText("APROBACIÓN GARANTÍA HIPOTECARIA");

        jTabbedPane1.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N

        pnlDatosPersoGara.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DATOS PERSONALES GARANTE", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel36.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel36.setText("RUT");

        jLabel37.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel37.setText("APELLIDO PATERNO");

        jLabel39.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel39.setText("APELLIDO MATERNO");

        jLabel40.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel40.setText("NOMBRE");

        txtNombreAprobHipo.setBackground(new java.awt.Color(255, 255, 102));
        txtNombreAprobHipo.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtNombreAprobHipo.setEnabled(false);

        txtApellMatAprobHipo.setBackground(new java.awt.Color(255, 255, 102));
        txtApellMatAprobHipo.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtApellMatAprobHipo.setEnabled(false);

        txtApellPatAprobHipo.setBackground(new java.awt.Color(255, 255, 102));
        txtApellPatAprobHipo.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtApellPatAprobHipo.setEnabled(false);

        txtRutAprobHipo.setBackground(new java.awt.Color(255, 255, 102));
        txtRutAprobHipo.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtRutAprobHipo.setEnabled(false);

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel37)
                    .addComponent(jLabel36))
                .addGap(18, 18, 18)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtRutAprobHipo, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtApellPatAprobHipo, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 75, Short.MAX_VALUE)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel39)
                    .addComponent(jLabel40))
                .addGap(18, 18, 18)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtNombreAprobHipo, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtApellMatAprobHipo, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(196, 196, 196))
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel36)
                    .addComponent(txtRutAprobHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel40)
                    .addComponent(txtNombreAprobHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel37)
                    .addComponent(txtApellPatAprobHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel39)
                    .addComponent(txtApellMatAprobHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        javax.swing.GroupLayout pnlDatosPersoGaraLayout = new javax.swing.GroupLayout(pnlDatosPersoGara);
        pnlDatosPersoGara.setLayout(pnlDatosPersoGaraLayout);
        pnlDatosPersoGaraLayout.setHorizontalGroup(
            pnlDatosPersoGaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDatosPersoGaraLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        pnlDatosPersoGaraLayout.setVerticalGroup(
            pnlDatosPersoGaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDatosPersoGaraLayout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        btnMenuAprobHipo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnMenuAprobHipo.setText("MENÚ PRINCIPAL");
        btnMenuAprobHipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuAprobHipoActionPerformed(evt);
            }
        });

        pnlIngreseRutGarante.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE ROL SII", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel30.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel30.setText("ROL");

        txtRolAprobHipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtRolAprobHipoActionPerformed(evt);
            }
        });

        btnBuscarRolAprobHipo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarRolAprobHipo.setText("BUSCAR");
        btnBuscarRolAprobHipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarRolAprobHipoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlIngreseRutGaranteLayout = new javax.swing.GroupLayout(pnlIngreseRutGarante);
        pnlIngreseRutGarante.setLayout(pnlIngreseRutGaranteLayout);
        pnlIngreseRutGaranteLayout.setHorizontalGroup(
            pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGaranteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel30)
                .addGap(18, 18, 18)
                .addGroup(pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtRolAprobHipo)
                    .addComponent(btnBuscarRolAprobHipo, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                .addContainerGap(52, Short.MAX_VALUE))
        );
        pnlIngreseRutGaranteLayout.setVerticalGroup(
            pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlIngreseRutGaranteLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel30)
                    .addComponent(txtRolAprobHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarRolAprobHipo)
                .addContainerGap())
        );

        pnlIngreseRutGarante1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE N° FOLIO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel31.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel31.setText("N° FOLIO");

        txtFolioAprobHipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtFolioAprobHipoActionPerformed(evt);
            }
        });

        btnBuscarFolioAprobHipo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarFolioAprobHipo.setText("BUSCAR");
        btnBuscarFolioAprobHipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarFolioAprobHipoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlIngreseRutGarante1Layout = new javax.swing.GroupLayout(pnlIngreseRutGarante1);
        pnlIngreseRutGarante1.setLayout(pnlIngreseRutGarante1Layout);
        pnlIngreseRutGarante1Layout.setHorizontalGroup(
            pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel31)
                .addGap(18, 18, 18)
                .addGroup(pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtFolioAprobHipo)
                    .addComponent(btnBuscarFolioAprobHipo, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                .addContainerGap(52, Short.MAX_VALUE))
        );
        pnlIngreseRutGarante1Layout.setVerticalGroup(
            pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlIngreseRutGarante1Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel31)
                    .addComponent(txtFolioAprobHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarFolioAprobHipo)
                .addContainerGap())
        );

        buttonGroup1.add(chkFolioAprobHipo);
        chkFolioAprobHipo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkFolioAprobHipo.setText("BUSCAR POR N° FOLIO");
        chkFolioAprobHipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkFolioAprobHipoActionPerformed(evt);
            }
        });

        buttonGroup1.add(chkRolAprobHipo);
        chkRolAprobHipo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkRolAprobHipo.setText("BUSCAR POR ROL SII");
        chkRolAprobHipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkRolAprobHipoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(pnlDatosPersoGara, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel5Layout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(btnMenuAprobHipo))
                            .addGroup(jPanel5Layout.createSequentialGroup()
                                .addGap(159, 159, 159)
                                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(pnlIngreseRutGarante1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(chkFolioAprobHipo))
                                .addGap(18, 18, 18)
                                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(chkRolAprobHipo)
                                    .addComponent(pnlIngreseRutGarante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(chkFolioAprobHipo, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(chkRolAprobHipo, javax.swing.GroupLayout.Alignment.TRAILING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pnlIngreseRutGarante, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pnlIngreseRutGarante1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(pnlDatosPersoGara, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 128, Short.MAX_VALUE)
                .addComponent(btnMenuAprobHipo)
                .addGap(63, 63, 63))
        );

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 819, Short.MAX_VALUE)
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addGap(0, 11, Short.MAX_VALUE)
                    .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 11, Short.MAX_VALUE)))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 489, Short.MAX_VALUE)
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addGap(0, 11, Short.MAX_VALUE)
                    .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 11, Short.MAX_VALUE)))
        );

        jTabbedPane1.addTab("INFO. GARANTE", jPanel1);

        pnlCreacionGaraHipo.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "CONFIRMACIÓN DATOS GARANTÍA HIPOTECARIA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N
        pnlCreacionGaraHipo.setPreferredSize(new java.awt.Dimension(692, 600));

        jPanel11.setPreferredSize(new java.awt.Dimension(740, 470));

        jLabel14.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel14.setText("TIPO GARANTÍA");

        jLabel15.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel15.setText("GRADO PREFERENCÍA");

        jLabel16.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel16.setText("MTS. CONSTRUIDOS");

        jLabel17.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel17.setText("AÑOS REPERTORIO");

        jLabel18.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel18.setText("A. FOJAS");

        jLabel19.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel19.setText("FECHA EXTINCIÓN");

        jLabel20.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel20.setText("FECHA ÚLT. REVALUO");

        jLabel21.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel21.setText("FECHA ÚLT. CRÉDITO");

        txtGradoPrefere.setBackground(new java.awt.Color(255, 255, 102));
        txtGradoPrefere.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtGradoPrefere.setEnabled(false);

        txtFechUltReval.setBackground(new java.awt.Color(255, 255, 102));
        txtFechUltReval.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechUltReval.setEnabled(false);

        txtFechUltCredito.setBackground(new java.awt.Color(255, 255, 102));
        txtFechUltCredito.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechUltCredito.setEnabled(false);

        txtFechExtincion.setBackground(new java.awt.Color(255, 255, 102));
        txtFechExtincion.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechExtincion.setEnabled(false);

        txtFojas.setBackground(new java.awt.Color(255, 255, 102));
        txtFojas.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFojas.setEnabled(false);

        txtAñosRepertorio.setBackground(new java.awt.Color(255, 255, 102));
        txtAñosRepertorio.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtAñosRepertorio.setEnabled(false);

        txtMtsConstruidos.setBackground(new java.awt.Color(255, 255, 102));
        txtMtsConstruidos.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtMtsConstruidos.setEnabled(false);

        txtTipoGarantia.setBackground(new java.awt.Color(255, 255, 102));
        txtTipoGarantia.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtTipoGarantia.setEnabled(false);

        jLabel22.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel22.setText("MONTO INICIAL");

        txtMontoInicialHipotecaria.setBackground(new java.awt.Color(255, 255, 102));
        txtMontoInicialHipotecaria.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtMontoInicialHipotecaria.setEnabled(false);

        javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
        jPanel15.setLayout(jPanel15Layout);
        jPanel15Layout.setHorizontalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel15)
                    .addComponent(jLabel20)
                    .addComponent(jLabel21)
                    .addComponent(jLabel19)
                    .addComponent(jLabel18)
                    .addComponent(jLabel17)
                    .addComponent(jLabel16)
                    .addComponent(jLabel14)
                    .addComponent(jLabel22))
                .addGap(18, 18, 18)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtTipoGarantia, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                    .addComponent(txtFechExtincion, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                    .addComponent(txtFechUltCredito, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                    .addComponent(txtFechUltReval, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                    .addComponent(txtGradoPrefere, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                    .addComponent(txtMontoInicialHipotecaria)
                    .addComponent(txtMtsConstruidos)
                    .addComponent(txtAñosRepertorio)
                    .addComponent(txtFojas))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel15Layout.setVerticalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14)
                    .addComponent(txtTipoGarantia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel15)
                    .addComponent(txtGradoPrefere, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(txtMtsConstruidos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel17)
                    .addComponent(txtAñosRepertorio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel18)
                    .addComponent(txtFojas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel19)
                    .addComponent(txtFechExtincion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel20)
                    .addComponent(txtFechUltReval, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel21)
                    .addComponent(txtFechUltCredito, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel22)
                    .addComponent(txtMontoInicialHipotecaria, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabel54.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel54.setText("SUCURSAL");

        jLabel55.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel55.setText("COBERTURA");

        jLabel56.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel56.setText("SUPERFICIE");

        jLabel57.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel57.setText("DIRECCIÓN (CRÉDITO)");

        jLabel58.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel58.setText("REGISTRO CBR");

        jLabel59.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel59.setText("ROL SII");

        jLabel60.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel60.setText("UNIDAD SUPERFICIE");

        jLabel61.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel61.setText("FECHA CREACIÓN");

        jLabel62.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel62.setText("FECHA ÚLT. DÉBITO");

        jLabel64.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel64.setText("FECHA ÚLT. TASACIÓN");

        jLabel65.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel65.setText("NÚMERO");

        jLabel66.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel66.setText("LOCALIDAD REGISTRO");

        jLabel67.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel67.setText("ESTADO CONTRIB.");

        jLabel68.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel68.setText("COMUNA");

        jLabel69.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel69.setText("TIPO CONSTRUCCIÓN");

        jLabel70.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel70.setText("MONEDA");

        txtDireccionCredito.setBackground(new java.awt.Color(255, 255, 102));
        txtDireccionCredito.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtDireccionCredito.setEnabled(false);

        txtLocalidadReg.setEditable(false);
        txtLocalidadReg.setBackground(new java.awt.Color(255, 255, 102));
        txtLocalidadReg.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtLocalidadReg.setEnabled(false);

        txtEstadoContri.setEditable(false);
        txtEstadoContri.setBackground(new java.awt.Color(255, 255, 102));
        txtEstadoContri.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtEstadoContri.setEnabled(false);

        txtFechUltTasacion.setEditable(false);
        txtFechUltTasacion.setBackground(new java.awt.Color(255, 255, 102));
        txtFechUltTasacion.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechUltTasacion.setEnabled(false);

        txtNumero.setEditable(false);
        txtNumero.setBackground(new java.awt.Color(255, 255, 102));
        txtNumero.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtNumero.setEnabled(false);

        txtRegistroCbr.setBackground(new java.awt.Color(255, 255, 102));
        txtRegistroCbr.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtRegistroCbr.setEnabled(false);

        txtRolSii.setBackground(new java.awt.Color(255, 255, 102));
        txtRolSii.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtRolSii.setEnabled(false);

        txtUniSuperficie.setBackground(new java.awt.Color(255, 255, 102));
        txtUniSuperficie.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtUniSuperficie.setEnabled(false);

        txtTipoConstruccion.setBackground(new java.awt.Color(255, 255, 102));
        txtTipoConstruccion.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtTipoConstruccion.setEnabled(false);

        txtComuna.setBackground(new java.awt.Color(255, 255, 102));
        txtComuna.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtComuna.setEnabled(false);

        txtMoneda.setBackground(new java.awt.Color(255, 255, 102));
        txtMoneda.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtMoneda.setEnabled(false);

        txtFechUltDebito.setBackground(new java.awt.Color(255, 255, 102));
        txtFechUltDebito.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechUltDebito.setEnabled(false);

        txtFechCreacion.setBackground(new java.awt.Color(255, 255, 102));
        txtFechCreacion.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechCreacion.setEnabled(false);

        txtSuperficie.setBackground(new java.awt.Color(255, 255, 102));
        txtSuperficie.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtSuperficie.setEnabled(false);

        txtCobertura.setBackground(new java.awt.Color(255, 255, 102));
        txtCobertura.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtCobertura.setEnabled(false);

        txtSucursal.setBackground(new java.awt.Color(255, 255, 102));
        txtSucursal.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtSucursal.setEnabled(false);

        javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel64)
                    .addComponent(jLabel68)
                    .addComponent(jLabel69)
                    .addComponent(jLabel70)
                    .addComponent(jLabel66)
                    .addComponent(jLabel67)
                    .addComponent(jLabel65))
                .addGap(186, 186, 186))
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel16Layout.createSequentialGroup()
                        .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(jPanel16Layout.createSequentialGroup()
                                .addGap(16, 16, 16)
                                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel61)
                                    .addComponent(jLabel62)
                                    .addComponent(jLabel60)
                                    .addComponent(jLabel59)
                                    .addComponent(jLabel58))
                                .addGap(34, 34, 34))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel16Layout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel55)
                                    .addComponent(jLabel56)
                                    .addComponent(jLabel54))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                        .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtSuperficie, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtCobertura, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtSucursal, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel16Layout.createSequentialGroup()
                        .addComponent(jLabel57)
                        .addGap(18, 18, 18)
                        .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(txtDireccionCredito, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(txtUniSuperficie, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                                .addComponent(txtEstadoContri, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                                .addComponent(txtLocalidadReg, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                                .addComponent(txtFechUltTasacion, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                                .addComponent(txtTipoConstruccion, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                                .addComponent(txtComuna, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                                .addComponent(txtMoneda, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                                .addComponent(txtFechUltDebito, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                                .addComponent(txtFechCreacion, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                                .addComponent(txtNumero)
                                .addComponent(txtRolSii)
                                .addComponent(txtRegistroCbr)))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel54)
                    .addComponent(txtSucursal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel55)
                    .addComponent(txtCobertura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel56)
                    .addComponent(txtSuperficie, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel57)
                    .addComponent(txtDireccionCredito, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel58)
                    .addComponent(txtRegistroCbr, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel59)
                    .addComponent(txtRolSii, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel60)
                    .addComponent(txtUniSuperficie, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel61)
                    .addComponent(txtFechCreacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel62)
                    .addComponent(txtFechUltDebito, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel70)
                    .addComponent(txtMoneda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel69)
                    .addComponent(txtTipoConstruccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel68)
                    .addComponent(txtComuna, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel67)
                    .addComponent(txtEstadoContri, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel66)
                    .addComponent(txtLocalidadReg, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel65)
                    .addComponent(txtNumero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel64)
                    .addComponent(txtFechUltTasacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(19, Short.MAX_VALUE))
        );

        jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ADJUNTAR ARCHIVO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        lblArchivo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblArchivo.setText("VER");

        btnExaminar.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnExaminar.setText("VER ARCHIVO");
        btnExaminar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnExaminarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addGap(67, 67, 67)
                .addComponent(lblArchivo)
                .addGap(18, 18, 18)
                .addComponent(btnExaminar)
                .addContainerGap(90, Short.MAX_VALUE))
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblArchivo)
                    .addComponent(btnExaminar))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(68, 68, 68)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 3, Short.MAX_VALUE))
                    .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(19, Short.MAX_VALUE))
        );

        jScrollPane1.setViewportView(jPanel11);

        javax.swing.GroupLayout pnlCreacionGaraHipoLayout = new javax.swing.GroupLayout(pnlCreacionGaraHipo);
        pnlCreacionGaraHipo.setLayout(pnlCreacionGaraHipoLayout);
        pnlCreacionGaraHipoLayout.setHorizontalGroup(
            pnlCreacionGaraHipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 759, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        pnlCreacionGaraHipoLayout.setVerticalGroup(
            pnlCreacionGaraHipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 414, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlCreacionGaraHipo, javax.swing.GroupLayout.DEFAULT_SIZE, 771, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlCreacionGaraHipo, javax.swing.GroupLayout.PREFERRED_SIZE, 437, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 28, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 30, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("INFORMACIÓN GARANTÍA", jPanel3);

        pnlDescripGarantia.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DESCRIPCIÓN GARANTIA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtDescripcionHipo.setBackground(new java.awt.Color(255, 255, 102));
        txtDescripcionHipo.setColumns(20);
        txtDescripcionHipo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtDescripcionHipo.setRows(5);
        txtDescripcionHipo.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtDescripcionHipo.setEnabled(false);
        jScrollPane4.setViewportView(txtDescripcionHipo);

        lblDescripcion.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblDescripcion.setText("DESCRIPCIÓN");

        txtComentarioApro.setColumns(20);
        txtComentarioApro.setRows(5);
        jScrollPane2.setViewportView(txtComentarioApro);

        jLabel5.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel5.setText("Comentario Aprobacion : ");

        jLabel4.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel4.setText("Estado Actual :");

        lblEstadoActual.setFont(new java.awt.Font("Century Gothic", 1, 12)); // NOI18N

        javax.swing.GroupLayout pnlEstadoLayout = new javax.swing.GroupLayout(pnlEstado);
        pnlEstado.setLayout(pnlEstadoLayout);
        pnlEstadoLayout.setHorizontalGroup(
            pnlEstadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlEstadoLayout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jLabel5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(16, 16, 16))
            .addGroup(pnlEstadoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblEstadoActual)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pnlEstadoLayout.setVerticalGroup(
            pnlEstadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlEstadoLayout.createSequentialGroup()
                .addContainerGap(14, Short.MAX_VALUE)
                .addGroup(pnlEstadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(lblEstadoActual))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlEstadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel5)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        javax.swing.GroupLayout pnlDescripGarantiaLayout = new javax.swing.GroupLayout(pnlDescripGarantia);
        pnlDescripGarantia.setLayout(pnlDescripGarantiaLayout);
        pnlDescripGarantiaLayout.setHorizontalGroup(
            pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDescripGarantiaLayout.createSequentialGroup()
                .addGap(70, 70, 70)
                .addGroup(pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlDescripGarantiaLayout.createSequentialGroup()
                        .addComponent(lblDescripcion)
                        .addGap(18, 18, 18)
                        .addComponent(jScrollPane4))
                    .addGroup(pnlDescripGarantiaLayout.createSequentialGroup()
                        .addComponent(pnlEstado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 326, Short.MAX_VALUE)))
                .addContainerGap())
        );
        pnlDescripGarantiaLayout.setVerticalGroup(
            pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDescripGarantiaLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDescripcion)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(46, 46, 46)
                .addComponent(pnlEstado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(349, 349, 349))
        );

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlDescripGarantia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlDescripGarantia, javax.swing.GroupLayout.PREFERRED_SIZE, 359, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(97, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(15, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("DESCRIP. GARANTÍA", jPanel2);

        btnAceptar.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnAceptar.setText("ACEPTAR");
        btnAceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAceptarActionPerformed(evt);
            }
        });

        btnIrMenuPrincipal.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnIrMenuPrincipal.setText("MENÚ PRINCIPAL >>");
        btnIrMenuPrincipal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnIrMenuPrincipalActionPerformed(evt);
            }
        });

        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ESTADO ACTUAL", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtEstadoActualHipotecaria.setEditable(false);

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addComponent(txtEstadoActualHipotecaria, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(txtEstadoActualHipotecaria, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pnlEstadoGarantia1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ESTADO GARANTIA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        lblEstrado1.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblEstrado1.setText("ESTADO");

        cmbEstadoAprobHipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "(SELECCIONE)" }));

        javax.swing.GroupLayout pnlEstadoGarantia1Layout = new javax.swing.GroupLayout(pnlEstadoGarantia1);
        pnlEstadoGarantia1.setLayout(pnlEstadoGarantia1Layout);
        pnlEstadoGarantia1Layout.setHorizontalGroup(
            pnlEstadoGarantia1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlEstadoGarantia1Layout.createSequentialGroup()
                .addGap(36, 36, 36)
                .addComponent(lblEstrado1)
                .addGap(49, 49, 49)
                .addComponent(cmbEstadoAprobHipo, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pnlEstadoGarantia1Layout.setVerticalGroup(
            pnlEstadoGarantia1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlEstadoGarantia1Layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addGroup(pnlEstadoGarantia1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblEstrado1)
                    .addComponent(cmbEstadoAprobHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(41, Short.MAX_VALUE))
        );

        pnlDescripGarantia2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DESCRIPCIÓN GARANTIA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtOtroComentarioAprobacion.setColumns(20);
        txtOtroComentarioAprobacion.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtOtroComentarioAprobacion.setRows(5);
        txtOtroComentarioAprobacion.setToolTipText("");
        jScrollPane6.setViewportView(txtOtroComentarioAprobacion);

        lblDescripcion2.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblDescripcion2.setText("COMENTARIO");

        javax.swing.GroupLayout pnlDescripGarantia2Layout = new javax.swing.GroupLayout(pnlDescripGarantia2);
        pnlDescripGarantia2.setLayout(pnlDescripGarantia2Layout);
        pnlDescripGarantia2Layout.setHorizontalGroup(
            pnlDescripGarantia2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDescripGarantia2Layout.createSequentialGroup()
                .addContainerGap(66, Short.MAX_VALUE)
                .addComponent(lblDescripcion2)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 614, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        pnlDescripGarantia2Layout.setVerticalGroup(
            pnlDescripGarantia2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDescripGarantia2Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlDescripGarantia2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDescripcion2)
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(pnlDescripGarantia2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pnlEstadoGarantia1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(366, 366, 366)
                .addComponent(btnAceptar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnIrMenuPrincipal)
                .addGap(26, 26, 26))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(41, 41, 41)
                .addComponent(pnlEstadoGarantia1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(44, 44, 44)
                .addComponent(pnlDescripGarantia2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 54, Short.MAX_VALUE)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnAceptar)
                    .addComponent(btnIrMenuPrincipal))
                .addGap(44, 44, 44))
        );

        jTabbedPane1.addTab("SÍ/NO", jPanel4);

        jPanel19.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE ROL SII", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        btnBuscarNumeroIdentificador.setText("BUSCAR");
        btnBuscarNumeroIdentificador.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarNumeroIdentificadorActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addGap(45, 45, 45)
                        .addComponent(txtBuscarNumeroIdentificador, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addGap(72, 72, 72)
                        .addComponent(btnBuscarNumeroIdentificador)))
                .addContainerGap(53, Short.MAX_VALUE))
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(txtBuscarNumeroIdentificador, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btnBuscarNumeroIdentificador)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        btnImprimirTabla.setText("IMPRIMIR");
        btnImprimirTabla.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnImprimirTablaActionPerformed(evt);
            }
        });

        jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ÁREA DE IMPRESIÓN", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        tbSalidaImpresion.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        tbSalidaImpresion.setEnabled(false);
        tbSalidaImpresion.setRowHeight(20);
        jScrollPane3.setViewportView(tbSalidaImpresion);

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 691, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)
                .addContainerGap())
        );

        btnMenuPrincipalHipotecaria.setText("MENÚ PRINCIPAL");
        btnMenuPrincipalHipotecaria.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPrincipalHipotecariaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
        jPanel18.setLayout(jPanel18Layout);
        jPanel18Layout.setHorizontalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel18Layout.createSequentialGroup()
                        .addGap(271, 271, 271)
                        .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel18Layout.createSequentialGroup()
                        .addGap(37, 37, 37)
                        .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(39, Short.MAX_VALUE))
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addGap(339, 339, 339)
                .addComponent(btnImprimirTabla)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnMenuPrincipalHipotecaria)
                .addGap(50, 50, 50))
        );
        jPanel18Layout.setVerticalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnImprimirTabla)
                    .addComponent(btnMenuPrincipalHipotecaria))
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("IMPRIMIR", jPanel17);

        btnExportar.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnExportar.setText("EXPORTAR A EXCEL");
        btnExportar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnExportarActionPerformed(evt);
            }
        });

        jLabel3.setText("MENÚ PRINCIPAL\\APROBACIÓN GARANTÍA HIPOTECARIA");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addGap(106, 106, 106)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnExportar)))
                .addGap(75, 75, 75))
            .addComponent(jTabbedPane1)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btnExportar)
                            .addComponent(jLabel3)))
                    .addComponent(jLabel2))
                .addGap(18, 18, 18)
                .addComponent(jTabbedPane1))
        );

        setSize(new java.awt.Dimension(840, 647));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void btnExportarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExportarActionPerformed
        if(!this.txtFolioAprobHipo.getText().equals("")){
        int folio = Integer.parseInt(this.txtFolioAprobHipo.getText().trim());
        reg.exportarGarantiaHipotecariaFolio(folio);
        javax.swing.JOptionPane.showMessageDialog(this, "Exportación realizada con exito");
        File file = new File("C:/export_aprobacion_garantia_Hipotecaria.csv");
        try {
            Desktop.getDesktop().open(file);
        } catch (IOException ex) {
            Logger.getLogger(IngresoGarante.class.getName()).log(Level.SEVERE, null, ex);
        }
        }
        if(!this.txtRolAprobHipo.getText().equals("")){
        String rol = this.txtRolAprobHipo.getText().trim();
        reg.exportarGarantiaHipotecariaRol(rol);
        javax.swing.JOptionPane.showMessageDialog(this, "Exportación realizada con exito");
        File file = new File("C:/export_aprobacion_garantia_Hipotecaria.csv");
        try {
            Desktop.getDesktop().open(file);
        } catch (IOException ex) {
            Logger.getLogger(IngresoGarante.class.getName()).log(Level.SEVERE, null, ex);
        }
        }
    }//GEN-LAST:event_btnExportarActionPerformed
 
    
    private void btnImprimirTablaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImprimirTablaActionPerformed

         try {
            
        int fila= 0;
  
        List Resultados = new ArrayList();
        ComprobanteGeneralDTO tipo;
        Resultados.clear();
        
        for(fila = 0; fila< tbSalidaImpresion.getRowCount(); fila++)
        {
            
           tipo = new ComprobanteGeneralDTO(String.valueOf(tbSalidaImpresion.getValueAt(fila, 0)),
                    " " + String.valueOf(tbSalidaImpresion.getValueAt(fila, 1)), " " + String.valueOf(tbSalidaImpresion.getValueAt(fila, 2))  + "\n");
           Resultados.add(tipo);

        }
        
            String reportSource = "C:\\Users\\SoftGroup\\Documents\\NetBeansProjects\\trunk\\AppGarantias\\build\\classes\\Reporte\\ComprobanteGeneralGarantias.jrxml";

            JasperReport jr = JasperCompileManager.compileReport(reportSource);
            
            
            JFrame reporte = new JFrame();
            reporte.setSize(900, 700);
            reporte.setLocationRelativeTo(null);
            reporte.setTitle("IMPRESIÓN");
            String fechaImpresion = String.valueOf(Fechas.FechaSistema());
            
            Map<String, Object> map = new HashMap<String, Object>();
            
            map.put("Titulo", "Sistema Gestión de Garantías Bancarias");
            map.put("fecha", fechaImpresion);
            map.put("nombreBanco", "Banco xxxxxx");
            map.put("subtitulo", "Comprobante Aprobación Hipotecaria");
            map.put("timbre", "Timbre");
            map.put("fechaUsuario","Fecha");
            map.put("firma","Firma");
            
            
            JRBeanCollectionDataSource coleccion = new JRBeanCollectionDataSource(Resultados);
            JasperPrint jp = JasperFillManager.fillReport(jr, map, coleccion);
            JRViewer jv = new JRViewer(jp);
            reporte.getContentPane().add(jv);
            reporte.setVisible(true);
            
            
            
        } catch (JRException e) {
            e.printStackTrace();
            Logger.getLogger(AprobacionGarantiaHipotecaria.class.getName()).log(Level.SEVERE, null, e);
        }
        
    }//GEN-LAST:event_btnImprimirTablaActionPerformed

    private void btnBuscarNumeroIdentificadorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarNumeroIdentificadorActionPerformed
        try
        {

            aproGaraHipo = reg.buscarPorRol(this.txtBuscarNumeroIdentificador.getText().trim());
            if (aproGaraHipo.getEstado_hipo().equals("Eliminada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Eliminada");
                this.txtBuscarNumeroIdentificador.setText(null);
                DefaultTableModel modelo =(DefaultTableModel)this.tbSalidaImpresion.getModel();      
                modelo.setNumRows(0);
                modelo.setColumnCount(0);
            }else
            {
            ArrayList<garantiaHipotecariaDTO> salida = reg.ListarPorRolHipo(this.txtBuscarNumeroIdentificador.getText().trim());
            
            if(salida.isEmpty())
            {
                 
                 this.txtBuscarNumeroIdentificador.setText(null);
                DefaultTableModel modelo =(DefaultTableModel)this.tbSalidaImpresion.getModel();      
                modelo.setNumRows(0);
                javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
               
            }else
            {
            DefaultTableModel modelo =(DefaultTableModel)this.tbSalidaImpresion.getModel(); 
          
            modelo.setColumnCount(0);
                if(modelo.getColumnCount() < 1)
                {
                    
                    Object[] arr1 ={"Rut: ","Nombre: ","Calle: ", "Garantía: ", "Número identificatorio Hipotecario: ",
                        "Número de folio: ", "Monto incial: ", "Creación de la garantía: ", "Sucursal:  ",
                        "Cobertura: ","Superficie: ","Dirección (Crédito): ", "Registro CBR: ","Unidad Superficie: ",
                        "Fecha último débito: ","Moneda: ","Tipo construcción: ","Comuna: ","Estado contribución: ",
                        "Localidad Registro: ","Fecha última tasación: ","Tipo garantía: ","Grado preferencía: ",
                        "Metros. construidos: ","Años repertorios: ","A. Fojas: ","Fecha vencimiento: ","Fecha último Revaluo: ",
                        "Fecha último crédito: ","Estado de la garantía: ","Fecha Aprobado/Rechazado: ",
                        "Usuario: "  };
                    modelo.addColumn("Concepto", arr1);
                    
                    for(garantiaHipotecariaDTO x: salida)
                {
                    Object[] arr2 ={
                        x.getRut_gara_hipo(),
                        x.getNombre_hipo()  + "  " + x.getApell_materno_hipo() + "  " + x.getApell_materno_hipo(),
                        x.getCalle_hipo() + "  " + x.getNum_dire_hipo(),x.getNombre_garantia_hipo(),x.getRol_sii_hipo(),x.getFolio_garantia_hipo(),
                        x.getMonto_inicial(),new SimpleDateFormat("dd-MM-yyyy").format(x.getFech_crea_hipo()),x.getSucursal_hipo(),x.getCobertura_hipo(),x.getSuperficie_hipo(),
                        x.getDireccion_hipo()+"  "+x.getNum_hipo(),x.getRegistro_cbr_hipo(),x.getUni_superficie_hipo(),new SimpleDateFormat("dd-MM-yyyy").format(x.getFech_ult_debito_hipo()),
                        x.getMoneda_hipo(),x.getTipo_construccion_hipo(),x.getComuna_hipo(),x.getEstado_constrib_hipo(),
                        x.getLocalidad_reg_hipo(),new SimpleDateFormat("dd-MM-yyyy").format(x.getFech_ult_tasa_hipo()),x.getTipo_garantia_hipo(),x.getGrado_prefere_hipo(),
                        x.getMts_construidos_hipo(),x.getAnos_repertorio_hipo(),x.getA_fojas_hipo(),new SimpleDateFormat("dd-MM-yyyy").format(x.getFech_extincion_hipo()),new SimpleDateFormat("dd-MM-yyyy").format(x.getFech_ult_revaluo_hipo()),
                        new SimpleDateFormat("dd-MM-yyyy").format(x.getFech_ult_credito_hipo()),x.getEstado_hipo(),new SimpleDateFormat("dd-MM-yyyy").format(x.getFech_crea_hipo()),x.getNombre_usuario()

                    };
                     
                    modelo.addColumn("Contenido",arr2);    
                }
                    
                    Object[] arr3 = {" "," "," "," "," "," "," "," "," "," "
                                    ," "," "," "," "," "," "," "," "," "," "
                                    ," "," "," "," "," "," "," "," "," "," "," "};
                    modelo.addColumn("Observaciones",arr3);
                    
                }
                
                
                
           
            }}
        }catch(Exception e)
        {
            e.getMessage();
        }

    }//GEN-LAST:event_btnBuscarNumeroIdentificadorActionPerformed

    private void btnAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAceptarActionPerformed
        aproGaraHipo.setEstado_hipo(this.cmbEstadoAprobHipo.getSelectedItem().toString());
        aproGaraHipo.setComent_apro_hipo(this.txtOtroComentarioAprobacion.getText());
        String rol = this.txtRolSii.getText();
        int respuesta = 5;
        if(aproGaraHipo.getEstado_hipo().equals("Aprobada"))
        {
            respuesta = javax.swing.JOptionPane.showConfirmDialog(null, "Esta seguro de aprobar esta garantia?", "Aprobacion", JOptionPane.OK_CANCEL_OPTION);
        }
        if(aproGaraHipo.getEstado_hipo().equals("Rechazada"))
        {
            respuesta = javax.swing.JOptionPane.showConfirmDialog(null, "Esta seguro de rechazar esta garantia?", "Rechazada", JOptionPane.OK_CANCEL_OPTION);
        }
        if(respuesta == 0)
        {
            reg.estadoGarantiaHipotecariaPorRolSii(rol,aproGaraHipo, user);
            javax.swing.JOptionPane.showMessageDialog(this, "Aprobacion realizada correctamente ");
            MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
            venMenuPrincipal.setVisible(true);
            AprobacionGarantiaHipotecaria.this.dispose();
        }

    }//GEN-LAST:event_btnAceptarActionPerformed

    private void btnIrMenuPrincipalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnIrMenuPrincipalActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        AprobacionGarantiaHipotecaria.this.dispose();
    }//GEN-LAST:event_btnIrMenuPrincipalActionPerformed

    private void btnExaminarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExaminarActionPerformed
        String archivo = aproGaraHipo.getAdjuntar_hipo();
        if(!archivo.equals("")){
            File file = new File(archivo);
            try {
                Desktop.getDesktop().open(file);
            } catch (IOException ex) {
                javax.swing.JOptionPane.showMessageDialog(this, "Problema al abrir archivo");
            }
        }else{
            javax.swing.JOptionPane.showMessageDialog(this, "No tiene archivo adjunto");
        }
    }//GEN-LAST:event_btnExaminarActionPerformed

    private void chkRolAprobHipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkRolAprobHipoActionPerformed
        if(this.chkRolAprobHipo.isSelected())
        {
            pnlIngreseRutGarante.setVisible(true);
            pnlIngreseRutGarante1.setVisible(false);
        }else{
            pnlIngreseRutGarante.setVisible(false);
        }
    }//GEN-LAST:event_chkRolAprobHipoActionPerformed

    private void chkFolioAprobHipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkFolioAprobHipoActionPerformed
        if(this.chkFolioAprobHipo.isSelected())
        {
            pnlIngreseRutGarante1.setVisible(true);
            pnlIngreseRutGarante.setVisible(false);
        }else{
            pnlIngreseRutGarante1.setVisible(false);
        }
    }//GEN-LAST:event_chkFolioAprobHipoActionPerformed

    private void btnBuscarFolioAprobHipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarFolioAprobHipoActionPerformed
        this.txtRolAprobHipo.setText("");
        try
        {
            int folio=Integer.parseInt(this.txtFolioAprobHipo.getText().trim());
            aproGaraHipo = reg.buscarPorFolioHipo(folio);
            if (aproGaraHipo.getEstado_hipo().equals("Eliminada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Eliminada");
                this.btnAceptar.setVisible(false);
                txtFolioAprobHipo.setText("");
                limpiar();
            }else
            {
        if (!this.txtFolioAprobHipo.getText().matches("[ 0-9]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo números");
            this.txtFolioAprobHipo.setText("");
        }
        else{

            
            aproGaraHipo = reg.buscarPorFolioHipo(folio);
            if(aproGaraHipo.getFolio_garantia_hipo() == 0 )
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Garantia NO ENCONTRADA");
                txtFolioAprobHipo.setText("");
                limpiar();
                btnAceptar.setVisible(false);
            }
            else
            {
                if(aproGaraHipo.getEstado_hipo().equals("Ingresada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Ingresada");
                this.btnAceptar.setVisible(true);
            }
            else if(aproGaraHipo.getEstado_hipo().equals("Aprobada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Aprobada");
                this.btnAceptar.setVisible(false);
            }
            else if(aproGaraHipo.getEstado_hipo().equals("Rechazada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Rechazada");
                this.btnAceptar.setVisible(false);
            }
            else if(aproGaraHipo.getEstado_hipo().equals("Modificada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Modificada");
                javax.swing.JOptionPane.showMessageDialog(this, "APROBAR O RECHAZAR DE NUEVO");
                this.btnAceptar.setVisible(true);
            }
            
                
                this.txtRutAprobHipo.setText(aproGaraHipo.getRut_gara_hipo());
                this.txtApellPatAprobHipo.setText(aproGaraHipo.getApell_paterno_hipo());
                this.txtApellMatAprobHipo.setText(aproGaraHipo.getApell_materno_hipo());
                this.txtNombreAprobHipo.setText(aproGaraHipo.getNombre_hipo());
                this.txtSucursal.setText(aproGaraHipo.getSucursal_hipo());
                this.txtCobertura.setText(aproGaraHipo.getCobertura_hipo());
                this.txtSuperficie.setText(String.valueOf(aproGaraHipo.getSuperficie_hipo()));
                this.txtDireccionCredito.setText(aproGaraHipo.getDireccion_hipo());
                this.txtRegistroCbr.setText(aproGaraHipo.getRegistro_cbr_hipo());
                this.txtRolSii.setText(aproGaraHipo.getRol_sii_hipo());
                this.txtUniSuperficie.setText(String.valueOf(aproGaraHipo.getUni_superficie_hipo()));
                String fechaCreacion = new SimpleDateFormat("dd-MM-yyyy").format(aproGaraHipo.getFech_crea_hipo().getTime());
                this.txtFechCreacion.setText(fechaCreacion);
                this.txtFechUltDebito.setText(new SimpleDateFormat("dd-MM-yyyy").format(aproGaraHipo.getFech_ult_debito_hipo()));
                this.txtMoneda.setText(aproGaraHipo.getMoneda_hipo());
                this.txtTipoConstruccion.setText(aproGaraHipo.getTipo_construccion_hipo());
                this.txtComuna.setText(aproGaraHipo.getComuna_hipo());
                this.txtEstadoContri.setText(aproGaraHipo.getEstado_constrib_hipo());
                this.txtLocalidadReg.setText(aproGaraHipo.getLocalidad_reg_hipo());
                this.txtNumero.setText(String.valueOf(aproGaraHipo.getNum_hipo()));
                this.txtFechUltTasacion.setText(new SimpleDateFormat("dd-MM-yyyy").format(aproGaraHipo.getFech_ult_tasa_hipo()));
                this.txtTipoGarantia.setText(aproGaraHipo.getTipo_garantia_hipo());
                this.txtGradoPrefere.setText(aproGaraHipo.getGrado_prefere_hipo());
                this.txtMtsConstruidos.setText(String.valueOf(aproGaraHipo.getMts_construidos_hipo()));
                this.txtAñosRepertorio.setText(String.valueOf(aproGaraHipo.getAnos_repertorio_hipo()));
                this.txtFojas.setText(String.valueOf(aproGaraHipo.getA_fojas_hipo()));
                String fechaVencimiento = new SimpleDateFormat("dd-MM-yyyy").format(aproGaraHipo.getFech_extincion_hipo().getTime());
                this.txtFechExtincion.setText(fechaVencimiento);
                this.txtFechUltReval.setText(new SimpleDateFormat("dd-MM-yyyy").format(aproGaraHipo.getFech_ult_revaluo_hipo()));
                this.txtFechUltCredito.setText(new SimpleDateFormat("dd-MM-yyyy").format(aproGaraHipo.getFech_ult_credito_hipo()));
                this.txtDescripcionHipo.setText(aproGaraHipo.getDescrip_hipo());
                this.txtMontoInicialHipotecaria.setText(String.valueOf(aproGaraHipo.getMonto_inicial()));
                this.txtEstadoActualHipotecaria.setText(aproGaraHipo.getEstado_hipo());
                this.txtComentarioApro.setText(aproGaraHipo.getComent_apro_hipo());
                for(int i=0; i<this.cmbEstadoAprobHipo.getItemCount();i++ )
            {
                if(aproGaraHipo.getEstado_hipo().equals("Aprobada"))
                {
                 int x = i-1;
                 this.cmbEstadoAprobHipo.setSelectedIndex(x);   
                }
                
                else if(aproGaraHipo.getEstado_hipo().equals("Rechazada"))
                {
                int f = i;
                this.cmbEstadoAprobHipo.setSelectedIndex(f);
                }
            }
               cambio();
        }       
        }
        }}catch(Exception e)
        {
            e.getMessage();
        }
    }//GEN-LAST:event_btnBuscarFolioAprobHipoActionPerformed

    private void txtFolioAprobHipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtFolioAprobHipoActionPerformed
        if (!this.txtFolioAprobHipo.getText().matches("[ 0-9]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo números");
            this.txtFolioAprobHipo.setText("");
        }
    }//GEN-LAST:event_txtFolioAprobHipoActionPerformed
     
    private void btnBuscarRolAprobHipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarRolAprobHipoActionPerformed
        this.txtFolioAprobHipo.setText("");
        try
        {
            aproGaraHipo = reg.buscarPorRol(this.txtRolAprobHipo.getText().trim());
            if (aproGaraHipo.getEstado_hipo().equals("Eliminada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Eliminada");
                this.btnAceptar.setVisible(false);
                txtRolAprobHipo.setText("");
                limpiar();
            }else
            {
        aproGaraHipo = reg.buscarPorRol(this.txtRolAprobHipo.getText().trim());
        if(aproGaraHipo.getFolio_garantia_hipo() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Garantia NO ENCONTRADA");
            txtRolAprobHipo.setText("");
            limpiar();
            btnAceptar.setVisible(false);
        }
        else
        {
           
         
           
            if(aproGaraHipo.getEstado_hipo().equals("Ingresada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Ingresada");
                this.btnAceptar.setVisible(true);
            }
            else if(aproGaraHipo.getEstado_hipo().equals("Aprobada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Aprobada");
                this.btnAceptar.setVisible(false);
            }
            else if(aproGaraHipo.getEstado_hipo().equals("Rechazada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Rechazada");
                this.btnAceptar.setVisible(false);
            }
            else if(aproGaraHipo.getEstado_hipo().equals("Modificada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Modificada");
                javax.swing.JOptionPane.showMessageDialog(this, "APROBAR O RECHAZAR DE NUEVO");
                this.btnAceptar.setVisible(true);
            }
            
           
            
            this.txtRutAprobHipo.setText(aproGaraHipo.getRut_gara_hipo());
            this.txtApellPatAprobHipo.setText(aproGaraHipo.getApell_paterno_hipo());
            this.txtApellMatAprobHipo.setText(aproGaraHipo.getApell_materno_hipo());
            this.txtNombreAprobHipo.setText(aproGaraHipo.getNombre_hipo());
            this.txtSucursal.setText(aproGaraHipo.getSucursal_hipo());
            this.txtCobertura.setText(aproGaraHipo.getCobertura_hipo());
            this.txtSuperficie.setText(String.valueOf(aproGaraHipo.getSuperficie_hipo()));
            this.txtDireccionCredito.setText(aproGaraHipo.getDireccion_hipo());
            this.txtRegistroCbr.setText(aproGaraHipo.getRegistro_cbr_hipo());
            this.txtRolSii.setText(aproGaraHipo.getRol_sii_hipo());
            this.txtUniSuperficie.setText(String.valueOf(aproGaraHipo.getUni_superficie_hipo()));
            String fechaCreacion = new SimpleDateFormat("dd-MM-yyyy").format(aproGaraHipo.getFech_crea_hipo().getTime());
            this.txtFechCreacion.setText(fechaCreacion);
            this.txtFechUltDebito.setText(new SimpleDateFormat("dd-MM-yyyy").format(aproGaraHipo.getFech_ult_debito_hipo()));
            this.txtMoneda.setText(aproGaraHipo.getMoneda_hipo());
            this.txtTipoConstruccion.setText(aproGaraHipo.getTipo_construccion_hipo());
            this.txtComuna.setText(aproGaraHipo.getComuna_hipo());
            this.txtEstadoContri.setText(aproGaraHipo.getEstado_constrib_hipo());
            this.txtLocalidadReg.setText(aproGaraHipo.getLocalidad_reg_hipo());
            this.txtNumero.setText(String.valueOf(aproGaraHipo.getNum_hipo()));
            this.txtFechUltTasacion.setText(new SimpleDateFormat("dd-MM-yyyy").format(aproGaraHipo.getFech_ult_tasa_hipo()));
            this.txtTipoGarantia.setText(aproGaraHipo.getTipo_garantia_hipo());
            this.txtGradoPrefere.setText(aproGaraHipo.getGrado_prefere_hipo());
            this.txtMtsConstruidos.setText(String.valueOf(aproGaraHipo.getMts_construidos_hipo()));
            this.txtAñosRepertorio.setText(String.valueOf(aproGaraHipo.getAnos_repertorio_hipo()));
            this.txtFojas.setText(String.valueOf(aproGaraHipo.getA_fojas_hipo()));
            String fechaVencimiento = new SimpleDateFormat("dd-MM-yyyy").format(aproGaraHipo.getFech_extincion_hipo().getTime());
            this.txtFechExtincion.setText(fechaVencimiento);
            this.txtFechUltReval.setText(new SimpleDateFormat("dd-MM-yyyy").format(aproGaraHipo.getFech_ult_revaluo_hipo()));
            this.txtFechUltCredito.setText(new SimpleDateFormat("dd-MM-yyyy").format(aproGaraHipo.getFech_ult_credito_hipo()));
            this.txtDescripcionHipo.setText(aproGaraHipo.getDescrip_hipo());
            this.txtMontoInicialHipotecaria.setText(String.valueOf(aproGaraHipo.getMonto_inicial()));
            this.txtEstadoActualHipotecaria.setText(aproGaraHipo.getEstado_hipo());
            this.txtComentarioApro.setText(aproGaraHipo.getComent_apro_hipo());
            for(int i=0; i<this.cmbEstadoAprobHipo.getItemCount();i++ )
            {
                if(aproGaraHipo.getEstado_hipo().equals("Aprobada"))
                {
                 int x = i-1;
                 this.cmbEstadoAprobHipo.setSelectedIndex(x);   
                }
                
                else if(aproGaraHipo.getEstado_hipo().equals("Rechazada"))
                {
                int f = i;
                this.cmbEstadoAprobHipo.setSelectedIndex(f);
                }
            }
            cambio();

        }
        }}catch(Exception e)
        {
            e.getMessage();
        }

    }//GEN-LAST:event_btnBuscarRolAprobHipoActionPerformed

    private void txtRolAprobHipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtRolAprobHipoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtRolAprobHipoActionPerformed

    private void btnMenuAprobHipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuAprobHipoActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        AprobacionGarantiaHipotecaria.this.dispose();
    }//GEN-LAST:event_btnMenuAprobHipoActionPerformed

    private void btnMenuPrincipalHipotecariaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPrincipalHipotecariaActionPerformed
         MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        AprobacionGarantiaHipotecaria.this.dispose();
    }//GEN-LAST:event_btnMenuPrincipalHipotecariaActionPerformed
    /**
     * @param args the command line arguments
     */
//    public static void main(String args[]) {
//        /*
//         * Set the Nimbus look and feel
//         */
//        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
//        /*
//         * If Nimbus (introduced in Java SE 6) is not available, stay with the
//         * default look and feel. For details see
//         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
//         */
//        try {
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
//                    breAprobacionGarantiaHipotecaria        }
//        } catch (ClassNotFoundException ex) {
//            java.util.logging.Logger.getLogger(AprobacionGarantiaHipotecaria2.class.getName()).log(javAprobacionGarantiaHipotecariaull, ex);
//        } catch (InstantiationException ex) {
//            java.util.logging.Logger.getLogger(AprobacionGarantiaHipotecaria2.class.getName()).log(javAprobacionGarantiaHipotecariaull, ex);
//        } catch (IllegalAccessException ex) {
//            java.util.logging.Logger.getLogger(AprobacionGarantiaHipotecaria2.class.getName()).log(java.util.logging.Level.AprobacionGarantiaHipotecaria catch (javax.swing.UnsupportedLookAndFeelException ex) {
//            java.util.logging.Logger.getLogger(AprobacionGarantiaHipotecaria2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        }
//        //</editor-fold>
//
//        /*
//         * Create and display the AprobacionGarantiaHipotecariaava.awt.EventQueue.invokeLater(new Runnable() {
//
//            public void run() {
//                new AprobacionGarantiaHipotecaria2().setVisible(true);
//            }
//        });
//    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAceptar;
    private javax.swing.JButton btnBuscarFolioAprobHipo;
    private javax.swing.JButton btnBuscarNumeroIdentificador;
    private javax.swing.JButton btnBuscarRolAprobHipo;
    private javax.swing.JButton btnExaminar;
    private javax.swing.JButton btnExportar;
    private javax.swing.JButton btnImprimirTabla;
    private javax.swing.JButton btnIrMenuPrincipal;
    private javax.swing.JButton btnMenuAprobHipo;
    private javax.swing.JButton btnMenuPrincipalHipotecaria;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JCheckBox chkFolioAprobHipo;
    private javax.swing.JCheckBox chkRolAprobHipo;
    private javax.swing.JComboBox cmbEstadoAprobHipo;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel56;
    private javax.swing.JLabel jLabel57;
    private javax.swing.JLabel jLabel58;
    private javax.swing.JLabel jLabel59;
    private javax.swing.JLabel jLabel60;
    private javax.swing.JLabel jLabel61;
    private javax.swing.JLabel jLabel62;
    private javax.swing.JLabel jLabel64;
    private javax.swing.JLabel jLabel65;
    private javax.swing.JLabel jLabel66;
    private javax.swing.JLabel jLabel67;
    private javax.swing.JLabel jLabel68;
    private javax.swing.JLabel jLabel69;
    private javax.swing.JLabel jLabel70;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JLabel lblArchivo;
    private javax.swing.JLabel lblDescripcion;
    private javax.swing.JLabel lblDescripcion2;
    private javax.swing.JLabel lblEstadoActual;
    private javax.swing.JLabel lblEstrado1;
    private javax.swing.JPanel pnlCreacionGaraHipo;
    private javax.swing.JPanel pnlDatosPersoGara;
    private javax.swing.JPanel pnlDescripGarantia;
    private javax.swing.JPanel pnlDescripGarantia2;
    private javax.swing.JPanel pnlEstado;
    private javax.swing.JPanel pnlEstadoGarantia1;
    private javax.swing.JPanel pnlIngreseRutGarante;
    private javax.swing.JPanel pnlIngreseRutGarante1;
    private javax.swing.JTable tbSalidaImpresion;
    private javax.swing.JTextField txtApellMatAprobHipo;
    private javax.swing.JTextField txtApellPatAprobHipo;
    private javax.swing.JTextField txtAñosRepertorio;
    private javax.swing.JTextField txtBuscarNumeroIdentificador;
    private javax.swing.JTextField txtCobertura;
    private javax.swing.JTextArea txtComentarioApro;
    private javax.swing.JTextField txtComuna;
    private javax.swing.JTextArea txtDescripcionHipo;
    private javax.swing.JTextField txtDireccionCredito;
    private javax.swing.JTextField txtEstadoActualHipotecaria;
    private javax.swing.JTextField txtEstadoContri;
    private javax.swing.JTextField txtFechCreacion;
    private javax.swing.JTextField txtFechExtincion;
    private javax.swing.JTextField txtFechUltCredito;
    private javax.swing.JTextField txtFechUltDebito;
    private javax.swing.JTextField txtFechUltReval;
    private javax.swing.JTextField txtFechUltTasacion;
    private javax.swing.JTextField txtFojas;
    private javax.swing.JTextField txtFolioAprobHipo;
    private javax.swing.JTextField txtGradoPrefere;
    private javax.swing.JTextField txtLocalidadReg;
    private javax.swing.JTextField txtMoneda;
    private javax.swing.JTextField txtMontoInicialHipotecaria;
    private javax.swing.JTextField txtMtsConstruidos;
    private javax.swing.JTextField txtNombreAprobHipo;
    private javax.swing.JTextField txtNumero;
    private javax.swing.JTextArea txtOtroComentarioAprobacion;
    private javax.swing.JTextField txtRegistroCbr;
    private javax.swing.JTextField txtRolAprobHipo;
    private javax.swing.JTextField txtRolSii;
    private javax.swing.JTextField txtRutAprobHipo;
    private javax.swing.JTextField txtSucursal;
    private javax.swing.JTextField txtSuperficie;
    private javax.swing.JTextField txtTipoConstruccion;
    private javax.swing.JTextField txtTipoGarantia;
    private javax.swing.JTextField txtUniSuperficie;
    // End of variables declaration//GEN-END:variables

    
    

    private void limpiar() {
                this.txtRutAprobHipo.setText(null);
                this.txtApellPatAprobHipo.setText(null);
                this.txtApellMatAprobHipo.setText(null);
                this.txtNombreAprobHipo.setText(null);
                this.txtSucursal.setText(null);
                this.txtCobertura.setText(null);
                this.txtSuperficie.setText(null);
                this.txtDireccionCredito.setText(null);
                this.txtRegistroCbr.setText(null);
                this.txtRolSii.setText(null);
                this.txtUniSuperficie.setText(null);
                this.txtFechCreacion.setText(null);
                this.txtFechUltDebito.setText(null);
                this.txtMoneda.setText(null);
                this.txtTipoConstruccion.setText(null);
                this.txtComuna.setText(null);
                this.txtEstadoContri.setText(null);
                this.txtLocalidadReg.setText(null);
                this.txtNumero.setText(null);
                this.txtFechUltTasacion.setText(null);
                this.txtTipoGarantia.setText(null);
                this.txtGradoPrefere.setText(null);
                this.txtMtsConstruidos.setText(null);
                this.txtAñosRepertorio.setText(null);
                this.txtFojas.setText(null);
                this.txtFechExtincion.setText(null);
                this.txtFechUltReval.setText(null);
                this.txtFechUltCredito.setText(null);
                this.lblEstadoActual.setText(null);
                this.txtComentarioApro.setText(null);
                this.cmbEstadoAprobHipo.setSelectedItem("(SELECCIONE)");
                this.txtDescripcionHipo.setText(null);
                this.txtMontoInicialHipotecaria.setText(null);
                this.txtEstadoActualHipotecaria.setText(null);
                
    }
    
    private void cambio()
    {
        if(aproGaraHipo.getEstado_hipo().equals("Ingresada") || aproGaraHipo.getEstado_hipo().equals("Modificada"))
                {
                    this.cmbEstadoAprobHipo.setSelectedItem("(SELECCIONE)");
                }
    }
}
